

let p = navigator.platform;
let u = navigator.userAgent;
let is_android = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1;
let is_ios = navigator.userAgent.match('iPad') || navigator.userAgent.match('iPhone') || navigator.userAgent.match('iPod');
var is_weChat = navigator.userAgent.match('MicroMessenger');

let native = {
    platform : p,
    ua : u,
    is_android : is_android,
    is_ios : is_ios,
    is_weChat: is_weChat

};
export default native;

